//
//  CustomCollectionViewLayout.h
//  UI15-Homework
//
//  Created by dllo on 16/8/3.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@protocol CustomLayoutDelegate <NSObject>

- (CGFloat)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout
                    height:(CGFloat)height
  widthForItemAtIndexPath:(NSIndexPath *)indexPath;

@end

@interface CustomCollectionViewLayout : UICollectionViewLayout
@property (nonatomic, weak) id <CustomLayoutDelegate> delegate;
@end
NS_ASSUME_NONNULL_END
